<script setup lang="ts">
import { useRoute } from 'vue-router'
import { computed } from 'vue'

const route = useRoute()
const result = route.query.message
console.log('接收到的结果:', result)
</script>

<template>
  <div id="event=result">
    <div v-if="result === 'success'">
      <img src="@/assets/success.png" width="500" alt="提交成功" />
      <div>
        <h3>提交成功</h3>
      </div>
    </div>
    <div v-else>
      <img src="@/assets/fail.png" width="500" alt="提交失败" />
      <div>
        <h3>提交失败</h3>
      </div>
    </div>
  </div>
</template>

<style scoped></style>
